$(function()
{
	$(".delete-video").submit(function(e){
		return confirm("WARNING: This action will DELETE this video!\n\nAre you sure you want to proceed?");
	});

	$("#title.newvideo").blur(function(event) {
		$.post("/manager/videos/getslug", {
			"str":$(this).val()
		}, function(data)
		{
			$("#slug").val(data.val);
		})
	});

});